﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSet_ThietBi" targetNamespace="http://tempuri.org/DataSet_ThietBi.xsd" xmlns:mstns="http://tempuri.org/DataSet_ThietBi.xsd" xmlns="http://tempuri.org/DataSet_ThietBi.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="VIBAConnectionString" IsAppSettingsProperty="true" Modifier="Assembly" Name="VIBAConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.VIBAConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIBA THIET BITableAdapter" GeneratorDataComponentClassName="VIBA_THIET_BITableAdapter" Name="VIBA THIET BI" UserDataComponentName="VIBA THIET BITableAdapter">
            <MainSource>
              <DbSource ConnectionRef="VIBAConnectionString (Web.config)" DbObjectName="khachhang_bts2.dbo.[VIBA THIET BI]" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [VIBA THIET BI] WHERE (([ThietBi_Id] = @Original_ThietBi_Id))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_ThietBi_Id" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="ThietBi_Id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [VIBA THIET BI] ([ThietBi_Id], [ThietBi_Ten], [ThietBi_NhanHieu], [ThietBi_TenCard], [ThietBi_SoPort], [ThietBi_GhiChu], [Status], [Tram_Id]) VALUES (@ThietBi_Id, @ThietBi_Ten, @ThietBi_NhanHieu, @ThietBi_TenCard, @ThietBi_SoPort, @ThietBi_GhiChu, @Status, @Tram_Id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@ThietBi_Id" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="ThietBi_Id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ThietBi_Ten" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ThietBi_Ten" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ThietBi_NhanHieu" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ThietBi_NhanHieu" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ThietBi_TenCard" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ThietBi_TenCard" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ThietBi_SoPort" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ThietBi_SoPort" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ThietBi_GhiChu" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ThietBi_GhiChu" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Status" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Status" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Tram_Id" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Tram_Id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>select * from [VIBA THIET BI]</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [VIBA THIET BI] SET [ThietBi_Id] = @ThietBi_Id, [ThietBi_Ten] = @ThietBi_Ten, [ThietBi_NhanHieu] = @ThietBi_NhanHieu, [ThietBi_TenCard] = @ThietBi_TenCard, [ThietBi_SoPort] = @ThietBi_SoPort, [ThietBi_GhiChu] = @ThietBi_GhiChu, [Status] = @Status, [Tram_Id] = @Tram_Id WHERE (([ThietBi_Id] = @Original_ThietBi_Id))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@ThietBi_Id" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="ThietBi_Id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ThietBi_Ten" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ThietBi_Ten" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ThietBi_NhanHieu" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ThietBi_NhanHieu" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ThietBi_TenCard" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ThietBi_TenCard" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ThietBi_SoPort" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ThietBi_SoPort" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ThietBi_GhiChu" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ThietBi_GhiChu" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Status" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Status" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Tram_Id" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Tram_Id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_ThietBi_Id" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="ThietBi_Id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ThietBi_Id" DataSetColumn="ThietBi_Id" />
              <Mapping SourceColumn="ThietBi_Ten" DataSetColumn="ThietBi_Ten" />
              <Mapping SourceColumn="ThietBi_NhanHieu" DataSetColumn="ThietBi_NhanHieu" />
              <Mapping SourceColumn="ThietBi_TenCard" DataSetColumn="ThietBi_TenCard" />
              <Mapping SourceColumn="ThietBi_SoPort" DataSetColumn="ThietBi_SoPort" />
              <Mapping SourceColumn="ThietBi_GhiChu" DataSetColumn="ThietBi_GhiChu" />
              <Mapping SourceColumn="Status" DataSetColumn="Status" />
              <Mapping SourceColumn="Tram_Id" DataSetColumn="Tram_Id" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DataSet_ThietBi" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DataSet_ThietBi" msprop:Generator_UserDSName="DataSet_ThietBi">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="VIBA_x0020_THIET_x0020_BI" msprop:Generator_TableClassName="VIBA_THIET_BIDataTable" msprop:Generator_TableVarName="tableVIBA_THIET_BI" msprop:Generator_TablePropName="VIBA_THIET_BI" msprop:Generator_RowDeletingName="VIBA_THIET_BIRowDeleting" msprop:Generator_UserTableName="VIBA THIET BI" msprop:Generator_RowChangingName="VIBA_THIET_BIRowChanging" msprop:Generator_RowEvHandlerName="VIBA_THIET_BIRowChangeEventHandler" msprop:Generator_RowDeletedName="VIBA_THIET_BIRowDeleted" msprop:Generator_RowEvArgName="VIBA_THIET_BIRowChangeEvent" msprop:Generator_RowChangedName="VIBA_THIET_BIRowChanged" msprop:Generator_RowClassName="VIBA_THIET_BIRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ThietBi_Id" msprop:Generator_ColumnVarNameInTable="columnThietBi_Id" msprop:Generator_ColumnPropNameInRow="ThietBi_Id" msprop:Generator_ColumnPropNameInTable="ThietBi_IdColumn" msprop:Generator_UserColumnName="ThietBi_Id">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ThietBi_Ten" msprop:Generator_ColumnVarNameInTable="columnThietBi_Ten" msprop:Generator_ColumnPropNameInRow="ThietBi_Ten" msprop:Generator_ColumnPropNameInTable="ThietBi_TenColumn" msprop:Generator_UserColumnName="ThietBi_Ten" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ThietBi_NhanHieu" msprop:Generator_ColumnVarNameInTable="columnThietBi_NhanHieu" msprop:Generator_ColumnPropNameInRow="ThietBi_NhanHieu" msprop:Generator_ColumnPropNameInTable="ThietBi_NhanHieuColumn" msprop:Generator_UserColumnName="ThietBi_NhanHieu" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ThietBi_TenCard" msprop:Generator_ColumnVarNameInTable="columnThietBi_TenCard" msprop:Generator_ColumnPropNameInRow="ThietBi_TenCard" msprop:Generator_ColumnPropNameInTable="ThietBi_TenCardColumn" msprop:Generator_UserColumnName="ThietBi_TenCard" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ThietBi_SoPort" msprop:Generator_ColumnVarNameInTable="columnThietBi_SoPort" msprop:Generator_ColumnPropNameInRow="ThietBi_SoPort" msprop:Generator_ColumnPropNameInTable="ThietBi_SoPortColumn" msprop:Generator_UserColumnName="ThietBi_SoPort" type="xs:int" minOccurs="0" />
              <xs:element name="ThietBi_GhiChu" msprop:Generator_ColumnVarNameInTable="columnThietBi_GhiChu" msprop:Generator_ColumnPropNameInRow="ThietBi_GhiChu" msprop:Generator_ColumnPropNameInTable="ThietBi_GhiChuColumn" msprop:Generator_UserColumnName="ThietBi_GhiChu" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="4000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Status" msprop:Generator_ColumnVarNameInTable="columnStatus" msprop:Generator_ColumnPropNameInRow="Status" msprop:Generator_ColumnPropNameInTable="StatusColumn" msprop:Generator_UserColumnName="Status" type="xs:int" minOccurs="0" />
              <xs:element name="Tram_Id" msprop:Generator_ColumnVarNameInTable="columnTram_Id" msprop:Generator_ColumnPropNameInRow="Tram_Id" msprop:Generator_ColumnPropNameInTable="Tram_IdColumn" msprop:Generator_UserColumnName="Tram_Id" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIBA_x0020_THIET_x0020_BI" />
      <xs:field xpath="mstns:ThietBi_Id" />
    </xs:unique>
  </xs:element>
</xs:schema>